<?php
/**
 * User: dengyue
 * Date: 2020-01-09
 * Time: 16:24
 */

namespace App\Libraries\Common;


class CommonFilter
{
    public static function checkPhone($phone)
    {
        if  (!is_numeric($phone)) return false;
        return preg_match('/^1[3-9]\d{9}$/', $phone);
    }
}